/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.DraFreeLottery = (function() {

    /**
     * Properties of a DraFreeLottery.
     * @exports IDraFreeLottery
     * @interface IDraFreeLottery
     * @property {string|null} [uuid] DraFreeLottery uuid
     * @property {string|null} [upper] DraFreeLottery upper
     * @property {string|null} [validFlag] DraFreeLottery validFlag
     * @property {string|null} [creator] DraFreeLottery creator
     * @property {string|null} [createTime] DraFreeLottery createTime
     * @property {string|null} [creatorIp] DraFreeLottery creatorIp
     * @property {string|null} [lastModifier] DraFreeLottery lastModifier
     * @property {string|null} [lastModifyTime] DraFreeLottery lastModifyTime
     * @property {string|null} [lastModifierIp] DraFreeLottery lastModifierIp
     * @property {string|null} [ownerOrganize] DraFreeLottery ownerOrganize
     * @property {string|null} [ownerRole] DraFreeLottery ownerRole
     * @property {string|null} [serNum] DraFreeLottery serNum
     * @property {string|null} [serMemo] DraFreeLottery serMemo
     * @property {string|null} [serAudit] DraFreeLottery serAudit
     * @property {string|null} [serUsing] DraFreeLottery serUsing
     * @property {string|null} [serLabels] DraFreeLottery serLabels
     * @property {string|null} [serGoodsDrawDesc] DraFreeLottery serGoodsDrawDesc
     * @property {string|null} [serGoodsDrawBrand] DraFreeLottery serGoodsDrawBrand
     * @property {string|null} [serGoodsDrawName] DraFreeLottery serGoodsDrawName
     * @property {string|null} [serGoodsDrawView] DraFreeLottery serGoodsDrawView
     * @property {string|null} [serGoodsDrawPeople] DraFreeLottery serGoodsDrawPeople
     * @property {string|null} [serGoodsDrawPrice] DraFreeLottery serGoodsDrawPrice
     * @property {string|null} [serGoodsDrawEndDate] DraFreeLottery serGoodsDrawEndDate
     * @property {string|null} [serGoodsDrawOpenDate] DraFreeLottery serGoodsDrawOpenDate
     * @property {string|null} [serGoodsDrawStartDate] DraFreeLottery serGoodsDrawStartDate
     * @property {string|null} [serGoodsDrawP1] DraFreeLottery serGoodsDrawP1
     * @property {string|null} [serGoodsDrawP2] DraFreeLottery serGoodsDrawP2
     * @property {string|null} [serGoodsDrawP3] DraFreeLottery serGoodsDrawP3
     * @property {string|null} [serGoodsDrawP4] DraFreeLottery serGoodsDrawP4
     * @property {string|null} [serGoodsDrawPname] DraFreeLottery serGoodsDrawPname
     * @property {string|null} [serGoodsDrawNumber] DraFreeLottery serGoodsDrawNumber
     * @property {string|null} [serDrawWidth] DraFreeLottery serDrawWidth
     * @property {string|null} [serDrawHeight] DraFreeLottery serDrawHeight
     * @property {string|null} [serGoodsDrawRefurbish] DraFreeLottery serGoodsDrawRefurbish
     * @property {string|null} [serGoodsDrawState] DraFreeLottery serGoodsDrawState
     */

    /**
     * Constructs a new DraFreeLottery.
     * @exports DraFreeLottery
     * @classdesc Represents a DraFreeLottery.
     * @implements IDraFreeLottery
     * @constructor
     * @param {IDraFreeLottery=} [properties] Properties to set
     */
    function DraFreeLottery(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * DraFreeLottery uuid.
     * @member {string} uuid
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.uuid = "";

    /**
     * DraFreeLottery upper.
     * @member {string} upper
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.upper = "";

    /**
     * DraFreeLottery validFlag.
     * @member {string} validFlag
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.validFlag = "";

    /**
     * DraFreeLottery creator.
     * @member {string} creator
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.creator = "";

    /**
     * DraFreeLottery createTime.
     * @member {string} createTime
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.createTime = "";

    /**
     * DraFreeLottery creatorIp.
     * @member {string} creatorIp
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.creatorIp = "";

    /**
     * DraFreeLottery lastModifier.
     * @member {string} lastModifier
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.lastModifier = "";

    /**
     * DraFreeLottery lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.lastModifyTime = "";

    /**
     * DraFreeLottery lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.lastModifierIp = "";

    /**
     * DraFreeLottery ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.ownerOrganize = "";

    /**
     * DraFreeLottery ownerRole.
     * @member {string} ownerRole
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.ownerRole = "";

    /**
     * DraFreeLottery serNum.
     * @member {string} serNum
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serNum = "";

    /**
     * DraFreeLottery serMemo.
     * @member {string} serMemo
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serMemo = "";

    /**
     * DraFreeLottery serAudit.
     * @member {string} serAudit
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serAudit = "";

    /**
     * DraFreeLottery serUsing.
     * @member {string} serUsing
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serUsing = "";

    /**
     * DraFreeLottery serLabels.
     * @member {string} serLabels
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serLabels = "";

    /**
     * DraFreeLottery serGoodsDrawDesc.
     * @member {string} serGoodsDrawDesc
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawDesc = "";

    /**
     * DraFreeLottery serGoodsDrawBrand.
     * @member {string} serGoodsDrawBrand
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawBrand = "";

    /**
     * DraFreeLottery serGoodsDrawName.
     * @member {string} serGoodsDrawName
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawName = "";

    /**
     * DraFreeLottery serGoodsDrawView.
     * @member {string} serGoodsDrawView
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawView = "";

    /**
     * DraFreeLottery serGoodsDrawPeople.
     * @member {string} serGoodsDrawPeople
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawPeople = "";

    /**
     * DraFreeLottery serGoodsDrawPrice.
     * @member {string} serGoodsDrawPrice
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawPrice = "";

    /**
     * DraFreeLottery serGoodsDrawEndDate.
     * @member {string} serGoodsDrawEndDate
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawEndDate = "";

    /**
     * DraFreeLottery serGoodsDrawOpenDate.
     * @member {string} serGoodsDrawOpenDate
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawOpenDate = "";

    /**
     * DraFreeLottery serGoodsDrawStartDate.
     * @member {string} serGoodsDrawStartDate
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawStartDate = "";

    /**
     * DraFreeLottery serGoodsDrawP1.
     * @member {string} serGoodsDrawP1
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawP1 = "";

    /**
     * DraFreeLottery serGoodsDrawP2.
     * @member {string} serGoodsDrawP2
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawP2 = "";

    /**
     * DraFreeLottery serGoodsDrawP3.
     * @member {string} serGoodsDrawP3
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawP3 = "";

    /**
     * DraFreeLottery serGoodsDrawP4.
     * @member {string} serGoodsDrawP4
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawP4 = "";

    /**
     * DraFreeLottery serGoodsDrawPname.
     * @member {string} serGoodsDrawPname
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawPname = "";

    /**
     * DraFreeLottery serGoodsDrawNumber.
     * @member {string} serGoodsDrawNumber
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawNumber = "";

    /**
     * DraFreeLottery serDrawWidth.
     * @member {string} serDrawWidth
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serDrawWidth = "";

    /**
     * DraFreeLottery serDrawHeight.
     * @member {string} serDrawHeight
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serDrawHeight = "";

    /**
     * DraFreeLottery serGoodsDrawRefurbish.
     * @member {string} serGoodsDrawRefurbish
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawRefurbish = "";

    /**
     * DraFreeLottery serGoodsDrawState.
     * @member {string} serGoodsDrawState
     * @memberof DraFreeLottery
     * @instance
     */
    DraFreeLottery.prototype.serGoodsDrawState = "";

    /**
     * Creates a new DraFreeLottery instance using the specified properties.
     * @function create
     * @memberof DraFreeLottery
     * @static
     * @param {IDraFreeLottery=} [properties] Properties to set
     * @returns {DraFreeLottery} DraFreeLottery instance
     */
    DraFreeLottery.create = function create(properties) {
        return new DraFreeLottery(properties);
    };

    /**
     * Encodes the specified DraFreeLottery message. Does not implicitly {@link DraFreeLottery.verify|verify} messages.
     * @function encode
     * @memberof DraFreeLottery
     * @static
     * @param {IDraFreeLottery} message DraFreeLottery message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    DraFreeLottery.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.serGoodsDrawDesc != null && message.hasOwnProperty("serGoodsDrawDesc"))
            writer.uint32(/* id 17, wireType 2 =*/138).string(message.serGoodsDrawDesc);
        if (message.serGoodsDrawBrand != null && message.hasOwnProperty("serGoodsDrawBrand"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.serGoodsDrawBrand);
        if (message.serGoodsDrawName != null && message.hasOwnProperty("serGoodsDrawName"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.serGoodsDrawName);
        if (message.serGoodsDrawView != null && message.hasOwnProperty("serGoodsDrawView"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.serGoodsDrawView);
        if (message.serGoodsDrawPeople != null && message.hasOwnProperty("serGoodsDrawPeople"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.serGoodsDrawPeople);
        if (message.serGoodsDrawPrice != null && message.hasOwnProperty("serGoodsDrawPrice"))
            writer.uint32(/* id 22, wireType 2 =*/178).string(message.serGoodsDrawPrice);
        if (message.serGoodsDrawEndDate != null && message.hasOwnProperty("serGoodsDrawEndDate"))
            writer.uint32(/* id 23, wireType 2 =*/186).string(message.serGoodsDrawEndDate);
        if (message.serGoodsDrawOpenDate != null && message.hasOwnProperty("serGoodsDrawOpenDate"))
            writer.uint32(/* id 24, wireType 2 =*/194).string(message.serGoodsDrawOpenDate);
        if (message.serGoodsDrawStartDate != null && message.hasOwnProperty("serGoodsDrawStartDate"))
            writer.uint32(/* id 25, wireType 2 =*/202).string(message.serGoodsDrawStartDate);
        if (message.serGoodsDrawP1 != null && message.hasOwnProperty("serGoodsDrawP1"))
            writer.uint32(/* id 26, wireType 2 =*/210).string(message.serGoodsDrawP1);
        if (message.serGoodsDrawP2 != null && message.hasOwnProperty("serGoodsDrawP2"))
            writer.uint32(/* id 27, wireType 2 =*/218).string(message.serGoodsDrawP2);
        if (message.serGoodsDrawP3 != null && message.hasOwnProperty("serGoodsDrawP3"))
            writer.uint32(/* id 28, wireType 2 =*/226).string(message.serGoodsDrawP3);
        if (message.serGoodsDrawP4 != null && message.hasOwnProperty("serGoodsDrawP4"))
            writer.uint32(/* id 29, wireType 2 =*/234).string(message.serGoodsDrawP4);
        if (message.serGoodsDrawPname != null && message.hasOwnProperty("serGoodsDrawPname"))
            writer.uint32(/* id 30, wireType 2 =*/242).string(message.serGoodsDrawPname);
        if (message.serGoodsDrawNumber != null && message.hasOwnProperty("serGoodsDrawNumber"))
            writer.uint32(/* id 31, wireType 2 =*/250).string(message.serGoodsDrawNumber);
        if (message.serDrawWidth != null && message.hasOwnProperty("serDrawWidth"))
            writer.uint32(/* id 32, wireType 2 =*/258).string(message.serDrawWidth);
        if (message.serDrawHeight != null && message.hasOwnProperty("serDrawHeight"))
            writer.uint32(/* id 33, wireType 2 =*/266).string(message.serDrawHeight);
        if (message.serGoodsDrawRefurbish != null && message.hasOwnProperty("serGoodsDrawRefurbish"))
            writer.uint32(/* id 34, wireType 2 =*/274).string(message.serGoodsDrawRefurbish);
        if (message.serGoodsDrawState != null && message.hasOwnProperty("serGoodsDrawState"))
            writer.uint32(/* id 35, wireType 2 =*/282).string(message.serGoodsDrawState);
        return writer;
    };

    /**
     * Encodes the specified DraFreeLottery message, length delimited. Does not implicitly {@link DraFreeLottery.verify|verify} messages.
     * @function encodeDelimited
     * @memberof DraFreeLottery
     * @static
     * @param {IDraFreeLottery} message DraFreeLottery message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    DraFreeLottery.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a DraFreeLottery message from the specified reader or buffer.
     * @function decode
     * @memberof DraFreeLottery
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {DraFreeLottery} DraFreeLottery
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    DraFreeLottery.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DraFreeLottery();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                message.serGoodsDrawDesc = reader.string();
                break;
            case 18:
                message.serGoodsDrawBrand = reader.string();
                break;
            case 19:
                message.serGoodsDrawName = reader.string();
                break;
            case 20:
                message.serGoodsDrawView = reader.string();
                break;
            case 21:
                message.serGoodsDrawPeople = reader.string();
                break;
            case 22:
                message.serGoodsDrawPrice = reader.string();
                break;
            case 23:
                message.serGoodsDrawEndDate = reader.string();
                break;
            case 24:
                message.serGoodsDrawOpenDate = reader.string();
                break;
            case 25:
                message.serGoodsDrawStartDate = reader.string();
                break;
            case 26:
                message.serGoodsDrawP1 = reader.string();
                break;
            case 27:
                message.serGoodsDrawP2 = reader.string();
                break;
            case 28:
                message.serGoodsDrawP3 = reader.string();
                break;
            case 29:
                message.serGoodsDrawP4 = reader.string();
                break;
            case 30:
                message.serGoodsDrawPname = reader.string();
                break;
            case 31:
                message.serGoodsDrawNumber = reader.string();
                break;
            case 32:
                message.serDrawWidth = reader.string();
                break;
            case 33:
                message.serDrawHeight = reader.string();
                break;
                case 34:
                    message.serGoodsDrawRefurbish = reader.string();
                    break;
                case 35:
                    message.serGoodsDrawState = reader.string();
                    break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a DraFreeLottery message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof DraFreeLottery
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {DraFreeLottery} DraFreeLottery
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    DraFreeLottery.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a DraFreeLottery message.
     * @function verify
     * @memberof DraFreeLottery
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    DraFreeLottery.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.serGoodsDrawDesc != null && message.hasOwnProperty("serGoodsDrawDesc"))
            if (!$util.isString(message.serGoodsDrawDesc))
                return "serGoodsDrawDesc: string expected";
        if (message.serGoodsDrawBrand != null && message.hasOwnProperty("serGoodsDrawBrand"))
            if (!$util.isString(message.serGoodsDrawBrand))
                return "serGoodsDrawBrand: string expected";
        if (message.serGoodsDrawName != null && message.hasOwnProperty("serGoodsDrawName"))
            if (!$util.isString(message.serGoodsDrawName))
                return "serGoodsDrawName: string expected";
        if (message.serGoodsDrawView != null && message.hasOwnProperty("serGoodsDrawView"))
            if (!$util.isString(message.serGoodsDrawView))
                return "serGoodsDrawView: string expected";
        if (message.serGoodsDrawPeople != null && message.hasOwnProperty("serGoodsDrawPeople"))
            if (!$util.isString(message.serGoodsDrawPeople))
                return "serGoodsDrawPeople: string expected";
        if (message.serGoodsDrawPrice != null && message.hasOwnProperty("serGoodsDrawPrice"))
            if (!$util.isString(message.serGoodsDrawPrice))
                return "serGoodsDrawPrice: string expected";
        if (message.serGoodsDrawEndDate != null && message.hasOwnProperty("serGoodsDrawEndDate"))
            if (!$util.isString(message.serGoodsDrawEndDate))
                return "serGoodsDrawEndDate: string expected";
        if (message.serGoodsDrawOpenDate != null && message.hasOwnProperty("serGoodsDrawOpenDate"))
            if (!$util.isString(message.serGoodsDrawOpenDate))
                return "serGoodsDrawOpenDate: string expected";
        if (message.serGoodsDrawStartDate != null && message.hasOwnProperty("serGoodsDrawStartDate"))
            if (!$util.isString(message.serGoodsDrawStartDate))
                return "serGoodsDrawStartDate: string expected";
        if (message.serGoodsDrawP1 != null && message.hasOwnProperty("serGoodsDrawP1"))
            if (!$util.isString(message.serGoodsDrawP1))
                return "serGoodsDrawP1: string expected";
        if (message.serGoodsDrawP2 != null && message.hasOwnProperty("serGoodsDrawP2"))
            if (!$util.isString(message.serGoodsDrawP2))
                return "serGoodsDrawP2: string expected";
        if (message.serGoodsDrawP3 != null && message.hasOwnProperty("serGoodsDrawP3"))
            if (!$util.isString(message.serGoodsDrawP3))
                return "serGoodsDrawP3: string expected";
        if (message.serGoodsDrawP4 != null && message.hasOwnProperty("serGoodsDrawP4"))
            if (!$util.isString(message.serGoodsDrawP4))
                return "serGoodsDrawP4: string expected";
        if (message.serGoodsDrawPname != null && message.hasOwnProperty("serGoodsDrawPname"))
            if (!$util.isString(message.serGoodsDrawPname))
                return "serGoodsDrawPname: string expected";
        if (message.serGoodsDrawNumber != null && message.hasOwnProperty("serGoodsDrawNumber"))
            if (!$util.isString(message.serGoodsDrawNumber))
                return "serGoodsDrawNumber: string expected";
        if (message.serDrawWidth != null && message.hasOwnProperty("serDrawWidth"))
            if (!$util.isString(message.serDrawWidth))
                return "serDrawWidth: string expected";
        if (message.serDrawHeight != null && message.hasOwnProperty("serDrawHeight"))
            if (!$util.isString(message.serDrawHeight))
                return "serDrawHeight: string expected";
        if (message.serGoodsDrawRefurbish != null && message.hasOwnProperty("serGoodsDrawRefurbish"))
            if (!$util.isString(message.serGoodsDrawRefurbish))
                return "serGoodsDrawRefurbish: string expected";
        if (message.serGoodsDrawState != null && message.hasOwnProperty("serGoodsDrawState"))
            if (!$util.isString(message.serGoodsDrawState))
                return "serGoodsDrawState: string expected";
        return null;
    };

    /**
     * Creates a DraFreeLottery message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof DraFreeLottery
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {DraFreeLottery} DraFreeLottery
     */
    DraFreeLottery.fromObject = function fromObject(object) {
        if (object instanceof $root.DraFreeLottery)
            return object;
        var message = new $root.DraFreeLottery();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.serGoodsDrawDesc != null)
            message.serGoodsDrawDesc = String(object.serGoodsDrawDesc);
        if (object.serGoodsDrawBrand != null)
            message.serGoodsDrawBrand = String(object.serGoodsDrawBrand);
        if (object.serGoodsDrawName != null)
            message.serGoodsDrawName = String(object.serGoodsDrawName);
        if (object.serGoodsDrawView != null)
            message.serGoodsDrawView = String(object.serGoodsDrawView);
        if (object.serGoodsDrawPeople != null)
            message.serGoodsDrawPeople = String(object.serGoodsDrawPeople);
        if (object.serGoodsDrawPrice != null)
            message.serGoodsDrawPrice = String(object.serGoodsDrawPrice);
        if (object.serGoodsDrawEndDate != null)
            message.serGoodsDrawEndDate = String(object.serGoodsDrawEndDate);
        if (object.serGoodsDrawOpenDate != null)
            message.serGoodsDrawOpenDate = String(object.serGoodsDrawOpenDate);
        if (object.serGoodsDrawStartDate != null)
            message.serGoodsDrawStartDate = String(object.serGoodsDrawStartDate);
        if (object.serGoodsDrawP1 != null)
            message.serGoodsDrawP1 = String(object.serGoodsDrawP1);
        if (object.serGoodsDrawP2 != null)
            message.serGoodsDrawP2 = String(object.serGoodsDrawP2);
        if (object.serGoodsDrawP3 != null)
            message.serGoodsDrawP3 = String(object.serGoodsDrawP3);
        if (object.serGoodsDrawP4 != null)
            message.serGoodsDrawP4 = String(object.serGoodsDrawP4);
        if (object.serGoodsDrawPname != null)
            message.serGoodsDrawPname = String(object.serGoodsDrawPname);
        if (object.serGoodsDrawNumber != null)
            message.serGoodsDrawNumber = String(object.serGoodsDrawNumber);
        if (object.serDrawWidth != null)
            message.serDrawWidth = String(object.serDrawWidth);
        if (object.serDrawHeight != null)
            message.serDrawHeight = String(object.serDrawHeight);
        if (object.serGoodsDrawRefurbish != null)
            message.serGoodsDrawRefurbish = String(object.serGoodsDrawRefurbish);
        if (object.serGoodsDrawState != null)
            message.serGoodsDrawState = String(object.serGoodsDrawState);
        return message;
    };

    /**
     * Creates a plain object from a DraFreeLottery message. Also converts values to other types if specified.
     * @function toObject
     * @memberof DraFreeLottery
     * @static
     * @param {DraFreeLottery} message DraFreeLottery
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    DraFreeLottery.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.serGoodsDrawDesc = "";
            object.serGoodsDrawBrand = "";
            object.serGoodsDrawName = "";
            object.serGoodsDrawView = "";
            object.serGoodsDrawPeople = "";
            object.serGoodsDrawPrice = "";
            object.serGoodsDrawEndDate = "";
            object.serGoodsDrawOpenDate = "";
            object.serGoodsDrawStartDate = "";
            object.serGoodsDrawP1 = "";
            object.serGoodsDrawP2 = "";
            object.serGoodsDrawP3 = "";
            object.serGoodsDrawP4 = "";
            object.serGoodsDrawPname = "";
            object.serGoodsDrawNumber = "";
            object.serDrawWidth = "";
            object.serDrawHeight = "";
            object.serGoodsDrawRefurbish = "";
            object.serGoodsDrawState = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.serGoodsDrawDesc != null && message.hasOwnProperty("serGoodsDrawDesc"))
            object.serGoodsDrawDesc = message.serGoodsDrawDesc;
        if (message.serGoodsDrawBrand != null && message.hasOwnProperty("serGoodsDrawBrand"))
            object.serGoodsDrawBrand = message.serGoodsDrawBrand;
        if (message.serGoodsDrawName != null && message.hasOwnProperty("serGoodsDrawName"))
            object.serGoodsDrawName = message.serGoodsDrawName;
        if (message.serGoodsDrawView != null && message.hasOwnProperty("serGoodsDrawView"))
            object.serGoodsDrawView = message.serGoodsDrawView;
        if (message.serGoodsDrawPeople != null && message.hasOwnProperty("serGoodsDrawPeople"))
            object.serGoodsDrawPeople = message.serGoodsDrawPeople;
        if (message.serGoodsDrawPrice != null && message.hasOwnProperty("serGoodsDrawPrice"))
            object.serGoodsDrawPrice = message.serGoodsDrawPrice;
        if (message.serGoodsDrawEndDate != null && message.hasOwnProperty("serGoodsDrawEndDate"))
            object.serGoodsDrawEndDate = message.serGoodsDrawEndDate;
        if (message.serGoodsDrawOpenDate != null && message.hasOwnProperty("serGoodsDrawOpenDate"))
            object.serGoodsDrawOpenDate = message.serGoodsDrawOpenDate;
        if (message.serGoodsDrawStartDate != null && message.hasOwnProperty("serGoodsDrawStartDate"))
            object.serGoodsDrawStartDate = message.serGoodsDrawStartDate;
        if (message.serGoodsDrawP1 != null && message.hasOwnProperty("serGoodsDrawP1"))
            object.serGoodsDrawP1 = message.serGoodsDrawP1;
        if (message.serGoodsDrawP2 != null && message.hasOwnProperty("serGoodsDrawP2"))
            object.serGoodsDrawP2 = message.serGoodsDrawP2;
        if (message.serGoodsDrawP3 != null && message.hasOwnProperty("serGoodsDrawP3"))
            object.serGoodsDrawP3 = message.serGoodsDrawP3;
        if (message.serGoodsDrawP4 != null && message.hasOwnProperty("serGoodsDrawP4"))
            object.serGoodsDrawP4 = message.serGoodsDrawP4;
        if (message.serGoodsDrawPname != null && message.hasOwnProperty("serGoodsDrawPname"))
            object.serGoodsDrawPname = message.serGoodsDrawPname;
        if (message.serGoodsDrawNumber != null && message.hasOwnProperty("serGoodsDrawNumber"))
            object.serGoodsDrawNumber = message.serGoodsDrawNumber;
        if (message.serDrawWidth != null && message.hasOwnProperty("serDrawWidth"))
            object.serDrawWidth = message.serDrawWidth;
        if (message.serDrawHeight != null && message.hasOwnProperty("serDrawHeight"))
            object.serDrawHeight = message.serDrawHeight;
        if (message.serGoodsDrawRefurbish != null && message.hasOwnProperty("serGoodsDrawRefurbish"))
            object.serGoodsDrawRefurbish = message.serGoodsDrawRefurbish;
        if (message.serGoodsDrawState != null && message.hasOwnProperty("serGoodsDrawState"))
            object.serGoodsDrawState = message.serGoodsDrawState;
        return object;
    };

    /**
     * Converts this DraFreeLottery to JSON.
     * @function toJSON
     * @memberof DraFreeLottery
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    DraFreeLottery.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return DraFreeLottery;
})();

$root.DraFreeLotteryCondition = (function() {

    /**
     * Properties of a DraFreeLotteryCondition.
     * @exports IDraFreeLotteryCondition
     * @interface IDraFreeLotteryCondition
     * @property {string|null} [uuid] DraFreeLotteryCondition uuid
     * @property {string|null} [upper] DraFreeLotteryCondition upper
     * @property {string|null} [validFlag] DraFreeLotteryCondition validFlag
     * @property {string|null} [creator] DraFreeLotteryCondition creator
     * @property {string|null} [createTime] DraFreeLotteryCondition createTime
     * @property {string|null} [creatorIp] DraFreeLotteryCondition creatorIp
     * @property {string|null} [lastModifier] DraFreeLotteryCondition lastModifier
     * @property {string|null} [lastModifyTime] DraFreeLotteryCondition lastModifyTime
     * @property {string|null} [lastModifierIp] DraFreeLotteryCondition lastModifierIp
     * @property {string|null} [ownerOrganize] DraFreeLotteryCondition ownerOrganize
     * @property {string|null} [ownerRole] DraFreeLotteryCondition ownerRole
     * @property {string|null} [serNum] DraFreeLotteryCondition serNum
     * @property {string|null} [serMemo] DraFreeLotteryCondition serMemo
     * @property {string|null} [serAudit] DraFreeLotteryCondition serAudit
     * @property {string|null} [serUsing] DraFreeLotteryCondition serUsing
     * @property {string|null} [serLabels] DraFreeLotteryCondition serLabels
     * @property {Array.<string>|null} [uuidList] DraFreeLotteryCondition uuidList
     * @property {string|null} [createTimeOUTSET] DraFreeLotteryCondition createTimeOUTSET
     * @property {string|null} [createTimeFINISH] DraFreeLotteryCondition createTimeFINISH
     * @property {string|null} [lastModifyTimeOUTSET] DraFreeLotteryCondition lastModifyTimeOUTSET
     * @property {string|null} [lastModifyTimeFINISH] DraFreeLotteryCondition lastModifyTimeFINISH
     * @property {Array.<string>|null} [serAuditList] DraFreeLotteryCondition serAuditList
     */

    /**
     * Constructs a new DraFreeLotteryCondition.
     * @exports DraFreeLotteryCondition
     * @classdesc Represents a DraFreeLotteryCondition.
     * @implements IDraFreeLotteryCondition
     * @constructor
     * @param {IDraFreeLotteryCondition=} [properties] Properties to set
     */
    function DraFreeLotteryCondition(properties) {
        this.uuidList = [];
        this.serAuditList = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * DraFreeLotteryCondition uuid.
     * @member {string} uuid
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.uuid = "";

    /**
     * DraFreeLotteryCondition upper.
     * @member {string} upper
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.upper = "";

    /**
     * DraFreeLotteryCondition validFlag.
     * @member {string} validFlag
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.validFlag = "";

    /**
     * DraFreeLotteryCondition creator.
     * @member {string} creator
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.creator = "";

    /**
     * DraFreeLotteryCondition createTime.
     * @member {string} createTime
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.createTime = "";

    /**
     * DraFreeLotteryCondition creatorIp.
     * @member {string} creatorIp
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.creatorIp = "";

    /**
     * DraFreeLotteryCondition lastModifier.
     * @member {string} lastModifier
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.lastModifier = "";

    /**
     * DraFreeLotteryCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.lastModifyTime = "";

    /**
     * DraFreeLotteryCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.lastModifierIp = "";

    /**
     * DraFreeLotteryCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.ownerOrganize = "";

    /**
     * DraFreeLotteryCondition ownerRole.
     * @member {string} ownerRole
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.ownerRole = "";

    /**
     * DraFreeLotteryCondition serNum.
     * @member {string} serNum
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.serNum = "";

    /**
     * DraFreeLotteryCondition serMemo.
     * @member {string} serMemo
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.serMemo = "";

    /**
     * DraFreeLotteryCondition serAudit.
     * @member {string} serAudit
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.serAudit = "";

    /**
     * DraFreeLotteryCondition serUsing.
     * @member {string} serUsing
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.serUsing = "";

    /**
     * DraFreeLotteryCondition serLabels.
     * @member {string} serLabels
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.serLabels = "";

    /**
     * DraFreeLotteryCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.uuidList = $util.emptyArray;

    /**
     * DraFreeLotteryCondition createTimeOUTSET.
     * @member {string} createTimeOUTSET
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.createTimeOUTSET = "";

    /**
     * DraFreeLotteryCondition createTimeFINISH.
     * @member {string} createTimeFINISH
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.createTimeFINISH = "";

    /**
     * DraFreeLotteryCondition lastModifyTimeOUTSET.
     * @member {string} lastModifyTimeOUTSET
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.lastModifyTimeOUTSET = "";

    /**
     * DraFreeLotteryCondition lastModifyTimeFINISH.
     * @member {string} lastModifyTimeFINISH
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.lastModifyTimeFINISH = "";

    /**
     * DraFreeLotteryCondition serAuditList.
     * @member {Array.<string>} serAuditList
     * @memberof DraFreeLotteryCondition
     * @instance
     */
    DraFreeLotteryCondition.prototype.serAuditList = $util.emptyArray;

    /**
     * Creates a new DraFreeLotteryCondition instance using the specified properties.
     * @function create
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {IDraFreeLotteryCondition=} [properties] Properties to set
     * @returns {DraFreeLotteryCondition} DraFreeLotteryCondition instance
     */
    DraFreeLotteryCondition.create = function create(properties) {
        return new DraFreeLotteryCondition(properties);
    };

    /**
     * Encodes the specified DraFreeLotteryCondition message. Does not implicitly {@link DraFreeLotteryCondition.verify|verify} messages.
     * @function encode
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {IDraFreeLotteryCondition} message DraFreeLotteryCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    DraFreeLotteryCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.uuidList[i]);
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.createTimeOUTSET);
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.createTimeFINISH);
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.lastModifyTimeOUTSET);
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.lastModifyTimeFINISH);
        if (message.serAuditList != null && message.serAuditList.length)
            for (var i = 0; i < message.serAuditList.length; ++i)
                writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditList[i]);
        return writer;
    };

    /**
     * Encodes the specified DraFreeLotteryCondition message, length delimited. Does not implicitly {@link DraFreeLotteryCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {IDraFreeLotteryCondition} message DraFreeLotteryCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    DraFreeLotteryCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a DraFreeLotteryCondition message from the specified reader or buffer.
     * @function decode
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {DraFreeLotteryCondition} DraFreeLotteryCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    DraFreeLotteryCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DraFreeLotteryCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                if (!(message.uuidList && message.uuidList.length))
                    message.uuidList = [];
                message.uuidList.push(reader.string());
                break;
            case 18:
                message.createTimeOUTSET = reader.string();
                break;
            case 19:
                message.createTimeFINISH = reader.string();
                break;
            case 20:
                message.lastModifyTimeOUTSET = reader.string();
                break;
            case 21:
                message.lastModifyTimeFINISH = reader.string();
                break;
            case 22:
                if (!(message.serAuditList && message.serAuditList.length))
                    message.serAuditList = [];
                message.serAuditList.push(reader.string());
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a DraFreeLotteryCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {DraFreeLotteryCondition} DraFreeLotteryCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    DraFreeLotteryCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a DraFreeLotteryCondition message.
     * @function verify
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    DraFreeLotteryCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            if (!$util.isString(message.createTimeOUTSET))
                return "createTimeOUTSET: string expected";
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            if (!$util.isString(message.createTimeFINISH))
                return "createTimeFINISH: string expected";
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            if (!$util.isString(message.lastModifyTimeOUTSET))
                return "lastModifyTimeOUTSET: string expected";
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            if (!$util.isString(message.lastModifyTimeFINISH))
                return "lastModifyTimeFINISH: string expected";
        if (message.serAuditList != null && message.hasOwnProperty("serAuditList")) {
            if (!Array.isArray(message.serAuditList))
                return "serAuditList: array expected";
            for (var i = 0; i < message.serAuditList.length; ++i)
                if (!$util.isString(message.serAuditList[i]))
                    return "serAuditList: string[] expected";
        }
        return null;
    };

    /**
     * Creates a DraFreeLotteryCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {DraFreeLotteryCondition} DraFreeLotteryCondition
     */
    DraFreeLotteryCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.DraFreeLotteryCondition)
            return object;
        var message = new $root.DraFreeLotteryCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".DraFreeLotteryCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        if (object.createTimeOUTSET != null)
            message.createTimeOUTSET = String(object.createTimeOUTSET);
        if (object.createTimeFINISH != null)
            message.createTimeFINISH = String(object.createTimeFINISH);
        if (object.lastModifyTimeOUTSET != null)
            message.lastModifyTimeOUTSET = String(object.lastModifyTimeOUTSET);
        if (object.lastModifyTimeFINISH != null)
            message.lastModifyTimeFINISH = String(object.lastModifyTimeFINISH);
        if (object.serAuditList) {
            if (!Array.isArray(object.serAuditList))
                throw TypeError(".DraFreeLotteryCondition.serAuditList: array expected");
            message.serAuditList = [];
            for (var i = 0; i < object.serAuditList.length; ++i)
                message.serAuditList[i] = String(object.serAuditList[i]);
        }
        return message;
    };

    /**
     * Creates a plain object from a DraFreeLotteryCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof DraFreeLotteryCondition
     * @static
     * @param {DraFreeLotteryCondition} message DraFreeLotteryCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    DraFreeLotteryCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.uuidList = [];
            object.serAuditList = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.createTimeOUTSET = "";
            object.createTimeFINISH = "";
            object.lastModifyTimeOUTSET = "";
            object.lastModifyTimeFINISH = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            object.createTimeOUTSET = message.createTimeOUTSET;
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            object.createTimeFINISH = message.createTimeFINISH;
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            object.lastModifyTimeOUTSET = message.lastModifyTimeOUTSET;
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            object.lastModifyTimeFINISH = message.lastModifyTimeFINISH;
        if (message.serAuditList && message.serAuditList.length) {
            object.serAuditList = [];
            for (var j = 0; j < message.serAuditList.length; ++j)
                object.serAuditList[j] = message.serAuditList[j];
        }
        return object;
    };

    /**
     * Converts this DraFreeLotteryCondition to JSON.
     * @function toJSON
     * @memberof DraFreeLotteryCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    DraFreeLotteryCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return DraFreeLotteryCondition;
})();

module.exports = $root;
